package main;

public class Summ {
	
	double s;
	public Summ(double _s)
	{
		s=_s;
	}
	synchronized public void setSumm(double _s)
	{
		s=s+_s;
	}
	
	synchronized public double getSumm()
	{
		return s;
	}

}
